package com.dxk.service;


import org.apache.dubbo.config.annotation.Reference;
import org.springframework.stereotype.Service;

@Service //放到容器中
public class UserService {
    //想拿到provider-service的票 需要去注册中拿到服务
    @Reference   //应用远程的 可以通过pom坐标  ，也可定义相同路径
    TickService tickService;
    public void getTickService(){
        String ticket = tickService.getTicket();
        System.out.println(ticket);
    }
}
